package router

import (
	"github.com/gin-gonic/gin"
	"practice/config"
	commit2 "practice/internal/api/commit"
	"practice/tools"
)

func CommitRouter(router *gin.RouterGroup) {
	commit := router.Group("commit").Use(tools.JWTAuth(config.AppConfig.Jwt.Key))
	{
		commit.POST("add", commit2.CommitAdd)
		commit.POST("find", commit2.FindsCommit)
	}
}
